import 'dart:ui';

import 'package:fish_redux/fish_redux.dart';

enum AppGlobalAction { changeTheme, changeLocale }

class AppGlobalActionCreator {

  ///更改主题
  static Action onChangeTheme(int indexFlag) {
    return Action(AppGlobalAction.changeTheme, payload: indexFlag);
  }
  ///修改系统语言
  static Action onChangeLocale(Locale l) {
    return Action(AppGlobalAction.changeLocale, payload: l);
  }
}
